<style>

</style>
<template>
    <mpage>
        <minfo >
            <div slot="left">_{{chidrenName}}</div>
            <div slot="right" style="float:right;">
                <Button  size="small" class="button"  @click="back()">返回</button>
                <Button type="primary" size="small" class="button"  @click="submint()">提交</Button>
            </div>
        </minfo>
        <mcontainer >
            <template v-if="'1' === chidrenType">
                <settLedInInfo />
            </template>
            <template v-if="'2' === chidrenType">
                <network />
            </template>
        </mcontainer>
    </mpage>
</template>
<script>
    import mcontainer from '../comp_chatter/mcontainer'
    import mheader from "../comp_chatter/mheader"
    import mpage from "../comp_chatter/mpage"
    import minfo from "../comp_chatter/minfo"
    import network from './applyVue/apply_network'
    import netmap from './applyVue/apply_netmapping'
    import settLedInInfo from './applyVue/apply_settledIn'

    export default {
        //子流程基础页面
        name:"chidrenPage",
        components:{
            mheader,mpage ,mcontainer,minfo,network,settLedInInfo,netmap
        }, 
        data(){
            return{
                chidrenPage: "",
                chidrenName: "",
                showApplyId:"",
                chidrenType: "",
                reqPid: ""
            }
        },
        created:function(){
            this.chidrenType =  this.$route.params.chidrenType + ''
            this.reqPid = this.$route.params.reqPid
            this.$nextTick(()=>{
                this.setChidrenPage()
            })
        },
        methods:{
            setChidrenPage(){
                if(this.chidrenType === '1' ){
                    this.chidrenName = "入驻申请"
                }else if(this.chidrenType === '2'){
                    this.chidrenName = "网络策略申请"
                }
            },
            back(){
                this.$router.go(-1)
            }
        },
    
    }
</script>